/**
 * %%
 * %%
 */
package org.apache.flink.runtime.allocatedeploy;

import java.util.Map;

import org.apache.flink.runtime.clusterframework.types.ResourceProfile;

/**
 * @类名: KeyExecutionSlotAllocationContext
 * @说明: 资源key
 *
 * @author   leehom
 * @Date	 2024年8月10日 下午8:10:50
 * 修改记录：
 *
 * @see 	 
 */
public class KeyExecutionSlotAllocationContext implements ExecutionSlotAllocationContext {
	
	public KeyExecutionSlotAllocationContext(Map<String, ResourceProfile> resourceProfileMap) {
		super();
		this.resourceProfileMap = resourceProfileMap;
	}

	private Map<String, ResourceProfile> resourceProfileMap;

	@Override
	public ResourceProfile getResourceProfile(String resourceKey) {
		return resourceProfileMap.get(resourceKey);
	}

}
